Optimal. Leaf size=45 \[ \frac {B e x}{c}+\frac {A d \log (x)}{b}+\frac {(b B-A c) (c d-b e) \log (b+c x)}{b c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {785}
\begin {gather*} \frac {(b B-A c) (c d-b e) \log (b+c x)}{b c^2}+\frac {A d \log (x)}{b}+\frac {B e x}{c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 785
Rubi steps
\begin {align*} \int \frac {(A+B x) (d+e x)}{b x+c x^2} \, dx &=\int \left (\frac {B e}{c}+\frac {A d}{b x}-\frac {(b B-A c) (-c d+b e)}{b c (b+c x)}\right ) \, dx\\ &=\frac {B e x}{c}+\frac {A d \log (x)}{b}+\frac {(b B-A c) (c d-b e) \log (b+c x)}{b c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 46, normalized size = 1.02 \begin {gather*} \frac {b B c e x+A c^2 d \log (x)-(b B-A c) (-c d+b e) \log (b+c x)}{b c^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.55, size = 55, normalized size = 1.22
method | result | size |
default | \(\frac {B e x}{c}+\frac {\left (A b c e -A \,c^{2} d -b^{2} B e +B b c d \right ) \ln \left (c x +b \right )}{c^{2} b}+\frac {A d \ln \left (x \right )}{b}\) | \(55\) |
norman | \(\frac {B e x}{c}+\frac {\left (A b c e -A \,c^{2} d -b^{2} B e +B b c d \right ) \ln \left (c x +b \right )}{c^{2} b}+\frac {A d \ln \left (x \right )}{b}\) | \(55\) |
risch | \(\frac {B e x}{c}+\frac {\ln \left (-c x -b \right ) A e}{c}-\frac {\ln \left (-c x -b \right ) A d}{b}-\frac {b \ln \left (-c x -b \right ) B e}{c^{2}}+\frac {\ln \left (-c x -b \right ) B d}{c}+\frac {A d \ln \left (x \right )}{b}\) | \(80\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 60, normalized size = 1.33 \begin {gather*} \frac {B x e}{c} + \frac {A d \log \left (x\right )}{b} - \frac {{\left (B b^{2} e - A b c e - {\left (B b c - A c^{2}\right )} d\right )} \log \left (c x + b\right )}{b c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.96, size = 59, normalized size = 1.31 \begin {gather*} \frac {B b c x e + A c^{2} d \log \left (x\right ) + {\left ({\left (B b c - A c^{2}\right )} d - {\left (B b^{2} - A b c\right )} e\right )} \log \left (c x + b\right )}{b c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 88 vs.
\(2 (39) = 78\).
time = 0.80, size = 88, normalized size = 1.96 \begin {gather*} \frac {A d \log {\left (x \right )}}{b} + \frac {B e x}{c} - \frac {\left (- A c + B b\right ) \left (b e - c d\right ) \log {\left (x + \frac {A b c d + \frac {b \left (- A c + B b\right ) \left (b e - c d\right )}{c}}{- A b c e + 2 A c^{2} d + B b^{2} e - B b c d} \right )}}{b c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.86, size = 59, normalized size = 1.31 \begin {gather*} \frac {B x e}{c} + \frac {A d \log \left ({\left | x \right |}\right )}{b} + \frac {{\left (B b c d - A c^{2} d - B b^{2} e + A b c e\right )} \log \left ({\left | c x + b \right |}\right )}{b c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.18, size = 58, normalized size = 1.29 \begin {gather*} \frac {B\,e\,x}{c}-\ln \left (b+c\,x\right )\,\left (\frac {A\,d}{b}-\frac {c\,\left (A\,b\,e+B\,b\,d\right )-B\,b^2\,e}{b\,c^2}\right )+\frac {A\,d\,\ln \left (x\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________